package com.supermarket.dao;

import com.supermarket.entity.Bill;
import com.supermarket.entity.Provider;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminDao {
    //你好
    int count(@Param ( "name" ) String name,@Param ( "type" ) Integer type);//查询记录条
    List<Bill> dd
            (@Param ( "Index" )Integer Index,@Param ( "size" )Integer size,
             @Param ( "name" )String name,@Param ( "type" )Integer type);//分页的方法
    int addBull(Bill bill);//添加的方法
    int remove(Integer id);

    Bill selectdao(Integer id);

    List<Provider>  getPrevider();//查询所有的运营商

    int daoupdate(Bill id);
}
